home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // ColEdit.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: ColEdit.pas
- //----------------------------------------------------------------------------
- #ifndef ColEditHPP
- #define ColEditHPP
- //----------------------------------------------------------------------------
- #include <LibHelp.hpp>
- #include <ComCtrls.hpp>
- #include <StdCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <System.hpp>
- #pragma warn -par
- #pragma warn -hid
- #pragma warn -inl
-
- namespace Coledit
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TColInfo;
- class __declspec(pascalimplementation) TColInfo : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- Classes::TList* FOwner;
- System::AnsiString FCaption;
- int FWidth;
- int FIndex;
- TAlignment FAlignment;
- Comctrls::TWidth FWidthType;
- int __fastcall GetIndex(void);
-
- public:
- __fastcall TColInfo(Classes::TList* AOwner, Comctrls::TListColumn* Column);
- __fastcall virtual ~TColInfo(void);
- __property int Index = {read=GetIndex, nodefault};
- __property Classes::TList* Owner = {read=FOwner, nodefault};
- };
-
- class __declspec(delphiclass) TListViewColumns;
- class __declspec(pascalimplementation) TListViewColumns : public Forms::TForm
- {
- typedef Forms::TForm inherited;
-
- __published:
- Stdctrls::TGroupBox* ColumnGroupBox;
- Stdctrls::TGroupBox* PropGroupBox;
- Stdctrls::TListBox* ColumnListBox;
- Stdctrls::TButton* New;
- Stdctrls::TButton* Delete;
- Stdctrls::TButton* Ok;
- Stdctrls::TButton* Cancel;
- Stdctrls::TButton* Apply;
- Stdctrls::TButton* Help;
- Stdctrls::TLabel* Label1;
- Stdctrls::TLabel* Label4;
- Stdctrls::TEdit* TextEdit;
- Stdctrls::TComboBox* AlignmentEdit;
- Stdctrls::TGroupBox* GroupBox1;
- Stdctrls::TEdit* WidthEdit;
- Stdctrls::TRadioButton* HWidthBtn;
- Stdctrls::TRadioButton* IWidthBtn;
- Stdctrls::TRadioButton* WidthBtn;
- void __fastcall ValueChanged(System::TObject* Sender);
- void __fastcall DeleteClick(System::TObject* Sender);
- void __fastcall TextEditExit(System::TObject* Sender);
- void __fastcall IndexEditExit(System::TObject* Sender);
- void __fastcall WidthEditExit(System::TObject* Sender);
- void __fastcall ColumnListBoxClick(System::TObject* Sender);
- void __fastcall NewClick(System::TObject* Sender);
- void __fastcall FormCreate(System::TObject* Sender);
- void __fastcall ApplyClick(System::TObject* Sender);
- void __fastcall AlignmentEditExit(System::TObject* Sender);
- void __fastcall FormDestroy(System::TObject* Sender);
- void __fastcall ColumnListBoxDragOver(System::TObject* Sender, System::TObject* Source, int X, int
- Y, Controls::TDragState State, bool &Accept);
- void __fastcall ColumnListBoxDragDrop(System::TObject* Sender, System::TObject* Source, int X, int
- Y);
- void __fastcall ColumnListBoxStartDrag(System::TObject* Sender, Controls::TDragObject* &DragObject)
- ;
- void __fastcall ColumnListBoxEndDrag(System::TObject* Sender, System::TObject* Target, int X, int Y
- );
- void __fastcall ColumnListBoxMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, int X, int Y);
- void __fastcall HWidthBtnClick(System::TObject* Sender);
- void __fastcall HelpClick(System::TObject* Sender);
-
- private:
- Classes::TList* FInfoList;
- System::AnsiString FDefaultText;
- int FDragIndex;
- Comctrls::TListColumns* FColumns;
- void __fastcall FlushControls(void);
- void __fastcall GetItem(Comctrls::TListColumn* Value);
- TColInfo* __fastcall GetColInfo(int Index);
- System::AnsiString __fastcall ListBoxText(TColInfo* Value);
- void __fastcall SetItem(TColInfo* Value);
- void __fastcall SetListBoxText(int Index, const System::AnsiString S);
- void __fastcall SetStates(void);
-
- public:
- __property TColInfo* ColItems[int Index] = {read=GetColInfo};
- __property Comctrls::TListColumns* Columns = {read=FColumns, nodefault};
- __property System::AnsiString DefaultText = {read=FDefaultText, nodefault};
- __property Classes::TList* InfoList = {read=FInfoList, nodefault};
- public:
- /* TForm.Create */ __fastcall virtual TListViewColumns(Classes::TComponent* AOwner) : Forms::TForm(
- AOwner) { }
- /* TForm.CreateNew */ __fastcall TListViewColumns(Classes::TComponent* AOwner, int Dummy) : Forms::
- TForm(AOwner, Dummy) { }
- /* TForm.Destroy */ __fastcall virtual ~TListViewColumns(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TListViewColumns(HWND ParentWindow) : Forms::TForm(ParentWindow
- ) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern bool __fastcall EditListViewColumns(Comctrls::TListColumns* AColumns);
-
- } /* namespace Coledit */
-
- #pragma warn .par
- #pragma warn .hid
- #pragma warn .inl
-
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Coledit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // ColEdit
-